from enum import Enum, auto, IntEnum


class Color(IntEnum):
    red = 1
    green = 2
    blue = 3


class ColorAuto(Enum):
    red = auto()
    green = auto()
    blue = 3
    real_blue = 3


print(Color.red, Color.red.name, Color.red.value, type(Color.red), repr(Color.red))
print(ColorAuto.red, ColorAuto.red.name, ColorAuto.red.value, type(ColorAuto.red), repr(ColorAuto.red))
for color in Color:
    print(color)
print(ColorAuto.blue is ColorAuto.real_blue)
print(Color.red is Color(1))
print(Color.red + 2 is Color(3))
